<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ SonarQube, open source software quality management tool.
  ~ Copyright (C) 2008-2016 SonarSource
  ~ mailto:contact AT sonarsource DOT com
  ~
  ~ SonarQube is free software; you can redistribute it and/or
  ~ modify it under the terms of the GNU Lesser General Public
  ~ License as published by the Free Software Foundation; either
  ~ version 3 of the License, or (at your option) any later version.
  ~
  ~ SonarQube is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  ~ Lesser General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public License
  ~ along with this program; if not, write to the Free Software Foundation,
  ~ Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>should-display-alerts-correctly-history-page</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
    <thead>
    <tr>
        <td rowspan="1" colspan="3">should-display-alerts-correctly-history-page</td>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>open</td>
        <td>/sessions/login</td>
        <td></td>
    </tr>
    <tr>
        <td>type</td>
        <td>login</td>
        <td>admin</td>
    </tr>
    <tr>
        <td>type</td>
        <td>password</td>
        <td>admin</td>
    </tr>
    <tr>
        <td>clickAndWait</td>
        <td>commit</td>
        <td></td>
    </tr>
    <tr>
        <td>waitForElementPresent</td>
        <td>css=.js-user-authenticated</td>
        <td></td>
    </tr>
    <tr>
        <td>open</td>
        <td>/dashboard/index/sample</td>
        <td></td>
    </tr>
    <tr>
        <td>click</td>
        <td>css=#context-navigation .navbar-admin-link</td>
        <td></td>
    </tr>
    <tr>
        <td>waitForElementPresent</td>
        <td>link=History</td>
        <td></td>
    </tr>
    <tr>
        <td>clickAndWait</td>
        <td>link=History</td>
        <td></td>
    </tr>
    <tr>
        <td>assertElementPresent</td>
        <td>//img[@title='Quality Gate Status: Green (was Orange). ']</td>
        <td></td>
    </tr>
    <tr>
        <td>assertElementPresent</td>
        <td>//img[@title='Quality Gate Status: Orange. Lines > 5']</td>
        <td></td>
    </tr>
    </tbody>
</table>
</body>
</html>
